<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('今日生日')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: bootstrap-editable-css"/>
    <th:block th:include="include :: container-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<style>
    .fixed-table-container .bs-checkbox .th-inner {
        padding: 8px 8px !important;
    }

</style>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <p>工号：</p>
                            <input type="text" name="badge"/>
                        </li>
                        <li>
                            <p>姓名：</p>
                            <input type="text" name="name"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>


        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>
<th:block th:include="include :: bootstrap-table-editable-js"/>
<th:block th:include="include :: hr-help-js"/>
<th:block th:include="include :: datetimepicker-js"/>

<script th:inline="javascript">

    var prefix = ctx + "empInfo/Remind";
    $(function () {
        $(".datetimepicker-demo-2").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-2',
                type: 'date'
            });

        });
        $(".datetimepicker-demo-1").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
        layui.use('laydate', function () {
            var laydate = layui.laydate;
            laydate.render({
                elem: '.laydate-demo-1',
                type: 'date'
            });
        });
        getData();
    });

    function getData() {
        var columns = [];
        var badge = {field: 'badge', title: '工号'};
        var name = {field: 'name', title: '姓名'};
        var eName = {field: 'eName', title: '英文名'};
        var compName = {field: 'compName', title: '公司名称'};
        var depName = {field: 'depName', title: '部门名称'};
        var jobName = {field: 'jobName', title: '工作岗位'};
        var empStatusTitle = {field: 'empStatusTitle', title: '员工状态'};
        var ReportToName = {field: 'ReportToName', title: '行政上级'};
        var WFReportToName = {field: 'WFReportToName', title: '职能上级'};
        var EmpTypeTitle = {field: 'EmpTypeTitle', title: '员工类型'};
        var WorkCityTitle = {field: 'WorkCityTitle', title: '工作城市'};
        var JoinDate = {field: 'JoinDate', title: '入职日期'};
        var Cyear = {field: 'Cyear', title: '司龄'};
        var WyearAdjust = {field: 'WyearAdjust', title: '工龄调整'};
        var JobBeginDate = {field: 'JobBeginDate', title: '从岗日期'};
        var Jyear = {field: 'Jyear', title: '岗龄'};
        var WorkBeginDate = {field: 'WorkBeginDate', title: '开始工作日期'};
        var WorkYears = {field: 'WorkYears', title: '工龄'};
        var PracTerm = {field: 'PracTerm', title: '实习期'};
        var PracEndDate = {field: 'PracEndDate', title: '实习结束日期'};
        var ProbTerm = {field: 'ProbTerm', title: '试用期'};
        var ProbEndDate = {field: 'ProbEndDate', title: '试用结束日期'};
        var LeaveDate = {field: 'LeaveDate', title: '离职日期'};
        var ConCount = {field: 'ConCount', title: '合同次数'};
        var Contract = {field: 'Contract', title: '合同签约单位'};
        var LeaveTypeTitle = {field: 'LeaveTypeTitle', title: '离职类型'};
        var LeaveReason = {field: 'LeaveReason', title: '离职原因'};
        var ConTypeTitle = {field: 'ConTypeTitle', title: '合同类型'};
        var ConNo = {field: 'ConNo', title: '合同编号'};
        var ConPropertyTitle = {field: 'ConPropertyTitle', title: '合同属性'};
        var ConBeginDate = {field: 'ConBeginDate', title: '合同开始日期'};
        var ConTerm = {field: 'ConTerm', title: '合同期'};
        var ConEndDate = {field: 'ConEndDate', title: '合同结束日期'};
        var CountryTitle = {field: 'CountryTitle', title: '国籍'};
        var CertTypeTitle = {field: 'CertTypeTitle', title: '证件类型'};
        var CertNo = {field: 'CertNo', title: '证件编号'};
        var GenderTitle = {field: 'GenderTitle', title: '性别'};
        var BirthDay = {field: 'BirthDay', title: '出生日期'};
        var age = {field: 'age', title: '年龄'};
        var HighLevelTitle = {field: 'HighLevelTitle', title: '最高学历'};
        var HighDegreeTitle = {field: 'HighDegreeTitle', title: '最高学位'};
        var HighTitle = {field: 'HighTitle', title: '最高职称'};
        var Mobile = {field: 'Mobile', title: '手机号码'};
        var EMail = {field: 'EMail', title: '电子邮件'};

        columns.push(badge,name,eName,compName,depName,jobName,empStatusTitle,ReportToName,WFReportToName);
        columns.push(EmpTypeTitle,WorkCityTitle,JoinDate,Cyear,WyearAdjust,JobBeginDate,Jyear,WorkBeginDate);
        columns.push(WorkYears,PracTerm,PracEndDate,ProbTerm,ProbEndDate,LeaveDate,ConCount,Contract);
        columns.push(LeaveTypeTitle,LeaveReason,ConTypeTitle,ConNo,ConPropertyTitle,ConBeginDate,ConTerm);
        columns.push(ConEndDate,CountryTitle,CertTypeTitle,CertNo,GenderTitle,BirthDay,age,HighLevelTitle);
        columns.push(HighDegreeTitle,HighTitle,Mobile,EMail);

        $("#close").click();
        var options = {
            url: prefix + "/todayBirthdayList",
            height: $(window).height() - 120,
            modalName: "今日生日",
            columns:columns
        };
        $.table.init(options);
    }


</script>
</body>
</html>